//
//  TMInComeCell.m
//  国学商家管理
//
//  Created by Tao Li on 2018/6/27.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMInComeCell.h"
#import "TMListView.h"
@implementation TMInComeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)moreDetailAction:(UIButton *)sender {
    if (self.block) {
        self.block();
    }
}
- (void)setListArray:(NSMutableArray *)listArray{
    _listArray = listArray;
    TMListView *list =  [[NSBundle mainBundle] loadNibNamed:@"TMListView" owner:self options:nil][0];
    list.isCourse = NO;
    list.isStarsShow = NO;
    list.isFanical = self.isFanical;
    list.list = self.listArray;
    list.frame = CGRectMake(0, 0, self.cellView.bounds.size.width, self.cellView.bounds.size.height);
    [self.cellView addSubview:list];
}
- (void)setIsFanical:(BOOL)isFanical{
    _isFanical = isFanical;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
